﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace BulletinMvc.Models
{
    public class BulletinCreateModel
    {
        [Required]      
        [Display(Name = "公示项目名称")]
        public string name { set; get; }

        [Required]
        [DataType(DataType.Date)]
        [Display(Name = "公示起始时间")]
        public DateTime startdatetime { set; get; }

        [Required]
        [DataType(DataType.Date)]
        [Display(Name = "公示结束时间")]
        public DateTime Duedatetime { set; get; }



        [Required]
        [Display(Name = "项目显示")]
        public bool visible { set; get; }

        [Required]
        [Display(Name = "显示等级评价")]
        public bool StarFeedbackEnabled { set; get; }

        [Required]
        [Display(Name = "显示文字评价")]
        public bool TextFeedbackEnabled { set; get; }

        
        [Display(Name = "描述")]
        public string Description { set; get; }


    }
}